amd iommu: improve parse_event_log_entry()
authorJan Beulich <jbeulich@suse.com>
Wed, 23 May 2012 15:20:18 +0000 (17:20 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 23 May 2012 15:20:18 +0000 (17:20 +0200)
commitba1d4290de4fadcab233adbb0c7ead6b41c5ee0f
treec5edefa52b0a870137ccd6720c6351debad80a7c
parentde0881a174ddbed6302002a0872dc7134f9b1f66
amd iommu: improve parse_event_log_entry()

- message table should be static (no need to set it up each time the
  function gets executed)
- don't bail on out-of-range event code values
- use message table also to print the kind of otherwise unhandled
  event codes

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Wang <wei.wang2@amd.com>
xen/drivers/passthrough/amd/iommu_init.c